package Employee;

public class Employee {
	
	private String name;
	private double salary;
	
	// Creates a new employee instance and sets salary
	public Employee(String employeeName, double currentSalary)
	{
		name = employeeName;
		salary = currentSalary;
	}
	
	//Raises salary by a percentage
	public void raiseSalary(double byPercent)
	{
		salary = salary + (salary * (byPercent / 100));
	}
	
	// Gets salary
	public double getSalary()
	{
		return salary;
	}
	
	// Gets Name
	public String getName()
	{
		return name;
	}

}